;Info [ Npc Name{GambleWoman} X=10 Y=6 MapName={Patientroom} ]

;NPC Release 1 (2003) By Geoff
;99% Translated NPCs Including Quests

[@main]
#IF
equal p9 0
#ACT
goto @main-1
BreakTimeRecall 
break

#IF
equal p9 1
#ACT
goto @main-3
BreakTimeRecall 
break

#IF
equal p9 2
#ACT
goto @next2
BreakTimeRecall 
break

#IF
equal p9 3
#ACT
goto @cube
BreakTimeRecall 
break

#IF
equal p9 9
#ACT
goto @quit
BreakTimeRecall 
break

[@main-1]
#IF
#ACT
mov p9 0
#SAY
Hello <$USERNAME>.\
Welcome to room 29, the room of perseverance.\
You will role 2 dice, and when the number is the same...\
You can coninue...\
You get 5 chances per chip\ \
<Continue/@main-2>

[@Quit]
#IF
#ACT
map B011

[@main-2]
#IF
checkitem gamblechip 1
#ACT
goto @main-3
take gamblechip 1
mov p2 0
mov p9 1
#ELSESAY
<$USERNAME>, you haven't got any chips!\
Go get some if you want to gamble.\ \
<Silly Me/@Quit>
#ELSEACT
mov p9 9

[@main-3]
Give it a try\ \
<Ok/@dicestart>

[@dicestart]
#IF
small p2 5
#ACT
mov p9 2
movr d0 6
movr d1 6
inc p2 1
inc d0 1
inc d1 1
playdice 2 @next
#SAY
Continue...
<Yea/@next>
#ELSEACT
goto @main-2

[@next]
#IF
equal d0 1
equal d1 1
#ACT
goto @next1
break

#IF
equal d0 2
equal d1 2
#ACT
goto @next1
break

#IF
equal d0 3
equal d1 3
#ACT
goto @next1
break

#IF
equal d0 4
equal d1 4
#ACT
goto @next1
break

#IF
equal d0 5
equal d1 5
#ACT
goto @next1
break

#IF
equal d0 6
equal d1 6

#ACT
goto @next1
break

#ELSESAY
Try Again\ \
<Ok/@dicestart>

[@next1]
#IF
#SAY
Well done, you did it\ \
<Role/@pre_cube>

[@pre_cube]
#IF
checkitem gamblechip 1
#ACT
mov p9 3
take gamblechip 1
movr d0 6
inc d0 1
playdice 1 @cube
#SAY
Continue\ \
<Ok/@cube>
#ELSESAY
<$USERNAME>, you haven't got any chips!\
Go get some if you want to gamble.\ \
<Silly Me/@Quit>
#ELSEACT
mov p9 9

[@cube]
#SAY
Hey, you rolled a <$STR(D0)> \
You can now move <$STR(D0)> rooms forward.\ \
<Sweet, lets move!/@next_cube>

[@next_cube]
#IF
equal d0 1 
#ACT
goto @posi1
break

#IF
equal d0 2 
#ACT
goto @posi2
break

#IF
equal d0 3 
#ACT
goto @posi3
break

#IF
equal d0 4 
#ACT
goto @posi4
break

#IF
equal d0 5
#ACT
goto @posi5
break

#IF
equal d0 6 
#ACT
goto @posi6
break

[@Posi1]
#IF
#ACT
batchDelay 1
addbatch B130
batchmove

[@Posi2]
#IF
#ACT
batchDelay 1
addbatch B130
addbatch B131
batchmove

[@Posi3]
#IF
#ACT
batchDelay 1
addbatch B130
addbatch B131
addbatch B132
batchmove

[@Posi4]
#IF
#ACT
batchDelay 1
addbatch B130
addbatch B131
addbatch B132
addbatch B133
batchmove

[@Posi5]
#IF
#ACT
batchDelay 1
addbatch B130
addbatch B131
addbatch B132
addbatch B133
addbatch B134
batchmove

[@Posi6]
#IF
#ACT
batchDelay 1
addbatch B130
addbatch B131
addbatch B132
addbatch B133
addbatch B134
addbatch B135
batchmove


